package com.chaopei.day38.service.impl;

import com.chaopei.day38.entity.Product;
import com.chaopei.day38.mappers.ProductMapper;
import com.chaopei.day38.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Corday 天涯
 * @Date 2022/4/22 14:35
 */
@Service
public class ProductServiceImpl implements ProductService {
//    @Autowired
    @Resource
    private ProductMapper pm;
    @Override
    public List<Product> queryProducts() {
        return pm.selectProducts();
    }
}
